

package jetbrains.buildServer.server.graphql.model;

import jetbrains.buildServer.server.graphql.util.ObjectIdentificationNode;
import jetbrains.buildServer.clouds.CloudProfile;
import org.jetbrains.annotations.NotNull;

public class CloudImage implements ObjectIdentificationNode {
  private final jetbrains.buildServer.clouds.CloudImage myRealImage;
  private final CloudProfile myRealProfile;

  public CloudImage(@NotNull jetbrains.buildServer.clouds.CloudImage realImage, @NotNull CloudProfile profile) {
    myRealImage = realImage;
    myRealProfile = profile;
  }

  public String getRawId() {
    return myRealImage.getId();
  }

  public String getName() {
    return myRealImage.getName();
  }

  public String getProfileId() {
    return myRealProfile.getProfileId();
  }

  @NotNull
  public jetbrains.buildServer.clouds.CloudImage getRealImage() {
    return myRealImage;
  }

  @NotNull
  public CloudProfile getRealProfile() {
    return myRealProfile;
  }
}